#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include "fsl_device_registers.h"
#include "fsl_clock_manager.h"
#include "fsl_interrupt_manager.h"
#include "fsl_rtc_driver.h"
#include "fsl_uart_driver.h"
#include "board.h"
| void hardware_init |
( |
void |
| ) |
|
Run a simple application which enables RTC timer. Each second time is refreshed on a UART terminal unsing the seconds interrupt. Alarm functionality is currently not enabled.
| static void rtc_seconds_ISR |
( |
void |
| ) |
|
|
static |
Seconds RTC Interrupt function. Toggles an LED and turns on a flag
| IRQn_Type rtc_irq_ids[FSL_FEATURE_RTC_INTERRUPT_COUNT] |
| volatile bool secondsFlag |